home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 419_01 / odmg10 / util / scripts / checkSysV.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1993-09-09  |  514 b   |  31 lines

  1. #!/bin/sh
  2.  
  3. case "$1" in
  4. "")    echo "Usage: $0 directory"; exit 1;;
  5. esac
  6.  
  7. echo "Analyzing $1 for Incompatabilities with System V"
  8.  
  9. echo 'File names longer than 12 characters (excluding the doc directory):'
  10. cd $1
  11.  
  12. dirlist=
  13. for dir in `echo *`
  14. do
  15.     case "$dir" in
  16.     doc)    ;;
  17.     *)    dirlist="$dirlist $dir";;
  18.     esac
  19. done
  20.  
  21. (
  22.     find doc      -name '???????????????*' -print
  23.     find $dirlist -name '?????????????*' -print
  24. ) | sort \
  25.   | sed -e '/,v/d' \
  26.         -e 's/^/    /'
  27.  
  28. echo 'Symbolic links:'
  29. find . -type l -print | sed -e 's/^/    /'
  30.  
  31.